﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;
using BCCommon.Enums;
using BCCommon.PaymentEnums;

namespace BCDto.Common.Payment.Payment
{
    /// <summary>
    /// 付款同步请求模型。
    /// </summary>
    public class PaymentSynchronizeRequestDto
    {
        /// <summary>
        /// 订单类型。
        /// </summary>
        [Display(Name = "订单类型")]
        [Required(ErrorMessage = "{0} 不能为空")]
        public FlowType OrderType { get; set; }

        /// <summary>
        /// 唯一参考号。
        /// </summary>
        [Display(Name = "唯一参考号")]
        //[Required(ErrorMessage = "{0} 不能为空")]
        public string ReferenceNumber { get; set; }

        /// <summary>
        /// 支付金额。
        /// </summary>
        [Display(Name = "支付金额")]
        [Required(ErrorMessage = "{0} 不能为空")]
        public decimal Amount { get; set; }

        /// <summary>
        /// 支付渠道类型。
        /// </summary>
        [Display(Name = "支付渠道类型")]
        [Required(ErrorMessage = "{0} 不能为空")]
        public PaymentChannelType ChannelType { get; set; }

        /// <summary>
        /// 来自支付渠道返回的相关参数。
        /// </summary>
        public string ActionArguments { get; set; }
    }
}
